class IndexController {
    constructor(ctx, next) {
        this.ctx = ctx;
        this.next = next;
        this.helloWorld = this.helloWorld.bind(this);
    }
    async helloWorld() {
        const reponse = this.ctx.$body(this.ctx);
        try {
            reponse({
                d: 'hello world'
            });
        } catch (error) {
            reponse({
                s: 0,
                m: error
            });
        }
        this.next();
    }
}

module.exports = IndexController;
